﻿using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace Ebusiness_UserService.Model
{
    //[Table("T_UserLoginHistory")]
    public class UserLoginHistory : AggregateRoot<Guid>
    {
        //public long ld { get; init; }
        public Guid? Userld { get; init; }//用户ld
        public PhoneNumber PhoneNumber { get; init; }//手机号
        public DateTime CreatedDateTime { get; init; }//时闻
        public string Messsage { get; init; }//消息
        private UserLoginHistory() { }
        public UserLoginHistory(Guid? userld, PhoneNumber phoneNumber, string message)
        {
            this.Userld = userld;
            this.PhoneNumber = phoneNumber;
            this.CreatedDateTime = DateTime.Now;
            this.Messsage = message;
        }
    }
}
